from selenium import webdriver
from selenium.webdriver.common.by import By
import time


def http_requests():
    client.get("https://captcha1.scrape.center/")
    time.sleep(3)
    client.find_element(by=By.XPATH,
                        value='/html/body/div[1]/div[2]/div/div/div/div/div/form/div[1]/div/div/input').send_keys(
        'admin')
    client.find_element(by=By.XPATH,
                        value='/html/body/div[1]/div[2]/div/div/div/div/div/form/div[2]/div/div/input').send_keys(
        'admin')
    client.find_element(by=By.XPATH,
                        value='/html/body/div[1]/div[2]/div/div/div/div/div/form/div[3]/div/button').click()
    time.sleep(2)
    client.find_element()
    print(client.page_source)
    time.sleep(3)
    return


if __name__ == "__main__":
    client = webdriver.Chrome()
    http_requests()
    client.quit()
